<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
<form action="LoginServlet" method="get" autocomplete="on">
    请输入用户名:<input name="username"><br>
    请输入密码:<input type="password" name="password"><br>
    验证码:<input type="text" name="checkCode" placeholder="请输入验证码"><br>
    <span><img src="/checkCode" alt="" onclick="changeCheckCode(this)"></span><br>
    <script type="text/javascript">
        //图片点击事件
        function changeCheckCode(img) {
            img.src="checkCode?"+new Date().getTime();
        }
    </script>

    <button type="submit">登录</button>
</form>
</body>
</html>